 <%@taglib prefix="s" uri="/struts-tags" %>
 <%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title>北大青鸟办公自动化管理系统</title>
		<link href="css/style.css" rel="stylesheet" type="text/css" />
		<script>
			function setit()
			{
				document.forms[0].submit();
			}
		</script>
		<script>
			function fileChange(target) {
			     var fileSize = 0;         
			     if (isIE && !target.files) {     
			       var filePath = target.value;     
			       var fileSystem = new ActiveXObject("Scripting.FileSystemObject");        
			       var file = fileSystem.GetFile (filePath);     
			       fileSize = file.Size;    
			     } else {    
			      fileSize = target.files[0].size;     
			      }   
			      var size = fileSize / 1024;    
			      if(size>9000){  
			       alert("附件不能大于9M");
			       target.value="";
			       return
			      }
			     
			    } 
		</script>
	</head>
	
	<body>
		<div class="top">
			<div class="global-width">
				<img src="Images/logo.gif" class="logo" />
			</div>
		</div>
		<div class="status">
			<div class="global-width">
			<%if(session.getAttribute("isLogin")!=null){%>
				<%=session.getAttribute("isLogin")%><%
			}else{%>
			你好！请先<a href="Login.jsp">登录</a>！
			<%	
			}
			%>
				欢迎访问青鸟办公管理系统！&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="logoutUser.action" onclick="location.href='loginOut.action'";>注销</a>
			</div>
		</div>
		<form id="myForm" name="myForm" action="userInfo!editData.action" method="post">
		<input type="hidden" name="u.id" value="26"/>
		<input type="hidden" name="u.sex" value="2" id="u_sex"/>
		<input type="hidden" name="u.supper" value="0" id="u_supper"/>
		<div class="main">
			<div class="global-width">
				
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title>北大青鸟办公自动化管理系统</title>
		<link href="css/style.css" rel="stylesheet" type="text/css" />
	</head>
  
  <body>
    <div class="nav" id="nav">
					<div class="t"></div>
					<dl>
							<dt onclick="this.parentNode.className=this.parentNode.className=='open'?'':'open';">信息管理 
						</dt>
						<dd>
							<a href="userSelect.action" target="_self">个人信息</a>
						</dd>
					</dl>
					<dl>
						<dt
							onclick="this.parentNode.className=this.parentNode.className=='open'?'':'open';">
							邮件管理
						</dt>
						<dd>
							<a href="mailWrite.action" target="_self">写邮件</a>
						</dd>
						<dd>
							<a href="mailReceive!receive.action" target="_self">收邮件</a>
						</dd>
						<dd>
							<a href="mailGarage!garage.action" target="_self">垃圾邮件</a>
						</dd>
					</dl>
					<dl>
						<dt
							onclick="this.parentNode.className=this.parentNode.className=='open'?'':'open';">
							考勤管理
						</dt>
						<dd>
							<a href="leave.action" target="_self">休假</a>
						</dd>
					</dl>
					
					<dl >
					
						<dt
							onclick="this.parentNode.className=this.parentNode.className=='open'?'':'open';">
							权限管理
						</dt>
						<dd>
							<a href="userInfo!singleAccountData.action" target="_self">个人账户</a>
						</dd>
						
					</dl>
				</div>
  </body>
</html>
	<div class="action">
		<div class="t">写邮件</div>
			<div class="pages">
				 <table >
					<tr>
					  <td ><div align="right">收件人：</div></td>
					  <td ><label>
						<select name="addressee" >
							<s:iterator value="#request.emails" id="email">
								 <option ><s:property value="#email.emailname" /></option>
							</s:iterator>	
						</select>
					  </label></td>
					</tr>
					<tr>
					  <td><div align="right">邮件标题：</div></td>
					  <td><label>
						<input type="text" name="emailname" />
					  </label></td>
					</tr>
					<tr>
					  <td ><div align="right">邮件内容：</div></td>
					  <td><label>
						<textarea name="textarea" cols="60" rows="12" maxlength="300"></textarea>
					  </label></td>
					  <td><label></label></td>
					</tr>
					<tr>
					  <td><div align="right">上传附件：</div></td>
					  <td><label>
						<input type="file" name="file"  id="file" onchange="fileChange(this)" />
					  </label></td>
					</tr>
					<tr>
					  <td>&nbsp;</td>
					  <td><label>

						<div align="center">
						  <input type="submit" name="Submit" value="发送邮件" />
						</div>
					  </label></td>
					  <td>&nbsp;</td>
					  <td>&nbsp;</td>
					</tr>
					<tr>
					  <td>&nbsp;</td>
					  <td>&nbsp;</td>
					  <td>&nbsp;</td>
					  <td>&nbsp;</td>
					</tr>
				</table>
			</div>
	</div>
			</div>
		</div>
		</form>
		<div class="copyright">
			Copyright &nbsp; &copy; &nbsp; 北大青鸟
		</div>
 
	</body>
</html>

